<!DOCTYPE html>
<html lang="en">
<head>
    <title>公共平台 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- 样式文件的引入 -->
    <link href="commons/css/style.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="commons/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="commons/themes/icon.css">
    <!-- jqueryUI JS文件的引入 -->
    <script type="text/javascript" src="commons/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="commons/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="commons/js/easyui-extends-validate.js"></script>
    <script type="text/javascript" src="commons/js/fusioncharts/JSClass/FusionCharts.js"></script>
    <!-- jqueryUI国际化 -->
    <script type="text/javascript" src="commons/js/easyui-lang-zh_CN.js"></script>
    <!-- 开发使用的公用js方法 -->
    <script type="text/javascript" src="commons/js/common.js"></script>
	<!-- 开发国际化的引用，主要完成后台信息在前台提示的国际化，一定要放在最后 -->
	<script type="text/javascript">var ctx = '/comm-user-auth-server';var actionExt = "action";var i18n = new Object();</script>
	<script src="commons/js/i18n/message_zh_CN.js" type="text/javascript"></script>
  </head>
  
  <body>
  	<div id='logWarnLevelDialog'></div>
    <!-- 流程审批代码结束 -->
  	<div class="easyui-layout" data-options="fit:true,border:false">
		<div data-options="region:'center',border:false">
			<div class="easyui-tabs" id="dutyRecordTabsIDs" data-options="fit:true">
				<div title="审计日志" href="log.html"></div>
				<div title="日志统计" href="log-summary.html"></div>
				<div title="异常告警" href="log-warn.html"></div>
			</div>
		</div>
	</div>
</body>
  </body>
</html>
<script type="text/javascript">
		//初始化表格对应的js对象
		$(function() {
			logWarnDialog();
		});
	function logWarnDialog(){
		$('#logWarnLevelDialog').dialog({    
		    title:"异常告警",  
		    iconCls:'icon-view',
		    width: 800,    
		    height: 600,    
		    closed: false,    
		    inline : true,
		    cache: true,    
		    href: "log-warn-dialog.html",    
		    modal: true
		});
	}
	function clearRecord(){
    	$.messager.confirm('提示',"您确定要清空这些记录吗？",function(result){
			if(result){
				$.ajax({
					type: "get",
					timeout:20000,
					url:  '/comm-user-auth-server/log/clearRecord',
					success: function(resultData,res){
						if(resultData.success == true){
							$.messager.alert('提示','数据清空完成！','info',function(){
								$('#logWarnlistTable').datagrid('reload');
							});
						}
					},
					error: function(res){
						var msn = ''||i18n[''];
						$.messager.alert('提示',i18n.requestError,'error');
					}
				});
			}});
    }
	</script>